package com.atguigu.flow.service.impl;

import com.atguigu.flow.mapper.SysApiMapper;
import com.atguigu.flow.entity.MenuBO;
import com.atguigu.flow.service.SysApiService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author zhl
 * @create 2021/9/19 23:26
 */
@AllArgsConstructor
@Transactional(readOnly = false)
@Service("sysApiService")
public class SysApiServiceImpl implements SysApiService {

    final SysApiMapper sysApiMapper;

    @Override
    public List<MenuBO> getMenuListByUser(String user) {
        return sysApiMapper.getMenuListByUser(user);
    }
    @Override
    public List<MenuBO> getMenuList() {
        return sysApiMapper.getMenuList();
    }


}
